<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>📄 关于 - Lightbulb Web Server</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        h1 {
            color: #333;
            text-align: center;
            margin-bottom: 30px;
        }
        .footer {
            text-align: center;
            margin-top: 30px;
            color: #999;
            font-size: 14px;
        }
        .section {
            margin-bottom: 2rem;
        }
        .section h2 {
            color: #333;
            margin-bottom: 1rem;
            border-bottom: 2px solid #2196F3;
            padding-bottom: 0.5rem;
        }
        .feature-list {
            list-style: none;
            padding: 0;
        }
        .feature-list li {
            padding: 0.5rem 0;
            border-bottom: 1px solid #e2e8f0;
        }
        .feature-list li:last-child {
            border-bottom: none;
        }
        .tech-stack {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1rem 0;
        }
        .tech-item {
            background: #ffffff;
            padding: 1rem;
            border-radius: 6px;
            text-align: center;
            border: 1px solid #e0e0e0;
            transition: all 0.2s ease;
        }
        
        .tech-item:hover {
            border-color: #2196F3;
        }
         .nav-link {
            text-decoration: none;
            color: inherit;
        }

        .nav-link:visited {
            color: inherit;
        }

        .nav-link:hover {
            color: #007BFF;
        }

        .nav-link:active {
            color: #0056b3;
        } .nav-link {
            text-decoration: none;
            color: inherit;
        }

        .nav-link:visited {
            color: inherit;
        }

        .nav-link:hover {
            color: #007BFF;
        }

        .nav-link:active {
            color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>关于 Lightbulb Web Server</h1>
        </div>

        <div style="margin-top: 30px;">
            <a class="nav-link" href="/">🏠 返回首页</a> | 
            <a class="nav-link" href="/docs">📘 使用文档</a> | 
            <a class="nav-link" href="/about">ℹ️ 关于</a> | 
            <a class="nav-link" href="/welcome">🎉 欢迎文档</a> | 
            <a class="nav-link" href="/404">⚠️ 404页面</a> | 
            <a class="nav-link" href="/500">💥 500页面</a>
        </div>

        <div class="content">
            <div class="section">
                <h2>项目简介</h2>
                <p>Lightbulb Web Server 是一个轻量级、高性能的 Rust Web 服务器，专为静态文件服务和开发测试环境设计。它基于 Rocket 框架构建，提供了现代化的 Web 服务功能。</p>
            </div>

            <div class="section">
                <h2>主要特性</h2>
                <ul class="feature-list">
                    <li>🚀 <strong>高性能</strong> - 基于 Rust 和 Rocket 框架构建</li>
                    <li>📁 <strong>静态文件服务</strong> - 自动提供静态文件服务</li>
                    <li>📝 <strong>Markdown 支持</strong> - 自动将 .md 文件转换为 HTML</li>
                    <li>⚙️ <strong>灵活配置</strong> - 支持命令行参数和配置文件</li>
                    <li>🎯 <strong>智能路由</strong> - 支持动态文件路径和错误页面处理</li>
                    <li>📊 <strong>日志系统</strong> - 内置日志记录，支持不同级别</li>
                    <li>🔒 <strong>安全防护</strong> - 路径安全检查，防止目录遍历攻击</li>
                </ul>
            </div>

            <div class="section">
                <h2>技术栈</h2>
                <div class="tech-stack">
                    <div class="tech-item">
                        <strong>🦀 Rust</strong><br>
                        系统编程语言
                    </div>
                    <div class="tech-item">
                        <strong>🚀 Rocket</strong><br>
                        Web 框架
                    </div>
                    <div class="tech-item">
                        <strong>⚡ Tokio</strong><br>
                        异步运行时
                    </div>
                    <div class="tech-item">
                        <strong>📋 TOML</strong><br>
                        配置格式
                    </div>
                </div>
            </div>
            <div class="footer">
                Powered by Rust + Rocket 🚀
            </div>
        </div>
    </div>
</body>
</html>